<?php



class TaxesMapBuilder implements MapBuilder {

	
	const CLASS_NAME = 'lib.model.map.TaxesMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap(TaxesPeer::DATABASE_NAME);

		$tMap = $this->dbMap->addTable(TaxesPeer::TABLE_NAME);
		$tMap->setPhpName('Taxes');
		$tMap->setClassname('Taxes');

		$tMap->setUseIdGenerator(false);

		$tMap->addPrimaryKey('ID', 'Id', 'VARCHAR', true, 255);

		$tMap->addColumn('NAME', 'Name', 'VARCHAR', true, 255);

		$tMap->addForeignKey('CATEGORY', 'Category', 'VARCHAR', 'TAXCATEGORIES', 'ID', true, 255);

		$tMap->addForeignKey('CUSTCATEGORY', 'Custcategory', 'VARCHAR', 'TAXCUSTCATEGORIES', 'ID', false, 255);

		$tMap->addForeignKey('PARENTID', 'Parentid', 'VARCHAR', 'TAXES', 'ID', false, 255);

		$tMap->addColumn('RATE', 'Rate', 'DOUBLE', true, null);

		$tMap->addColumn('RATECASCADE', 'Ratecascade', 'VARCHAR', true, 1);

		$tMap->addColumn('RATEORDER', 'Rateorder', 'INTEGER', false, 11);

	} 
} 